package com.wuzuqing.android.eightdiagrams.term;

/**
 * @Description:
 * @Author: 吴祖清
 * @CreateDate: 1.2.24 10:53 AM
 */
public class JieQi {
   public String name;
    public Solar  solar;
   public boolean jie;
   public boolean qi;

    public JieQi(String name, Solar solar, boolean jie, boolean qi) {
        this.name = name;
        this.solar = solar;
        this.jie = jie;
        this.qi = qi;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Solar getSolar() {
        return solar;
    }

    public void setSolar(Solar solar) {
        this.solar = solar;
    }

    public boolean isJie() {
        return jie;
    }

    public void setJie(boolean jie) {
        this.jie = jie;
    }

    public boolean isQi() {
        return qi;
    }

    public void setQi(boolean qi) {
        this.qi = qi;
    }

    @Override
    public String toString() {
        return "JieQi{" +
                "name='" + name + '\'' +
                ", solar=" + solar.toYmdHms() +
                ", jie=" + jie +
                ", qi=" + qi +
                '}';
    }
    public String toText(){
        return name + "("+solar.toYmdHms()+")";
    }
}
